home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000102_news@newsmaster….columbia.edu _Thu Jul 24 11:37:19 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA14903
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 24 Jul 1997 11:37:18 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA11472
  7.     for kermit.misc@watsun; Thu, 24 Jul 1997 11:37:18 -0400 (EDT)
  8. Path: news.columbia.edu!sol.ctr.columbia.edu!news.indiana.edu!vixen.cso.uiuc.edu!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!131.103.1.114!chi-news.cic.net!ftpbox.mot.com!mothost.mot.com!news-in.cig.mot.com!not-for-mail
  9. From: bradshaw@pcs.mot.com (Robert H. Bradshaw)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: ftp script
  12. Date: 24 Jul 1997 14:57:46 GMT
  13. Organization: The Unconfigured xvnews people
  14. Lines: 48
  15. Message-ID: <5r7qha$c40$1@trotsky.cig.mot.com>
  16. Reply-To: bradshaw@pcs.mot.com
  17. NNTP-Posting-Host: lion52.pcs.mot.com
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7380
  19.  
  20. I am trying to use C-kermit's scripting feature to automate an ftp session.
  21. QUESTION: Is this a could idea? I know there are other tools that can do this
  22.            like expect, perl, etc. These tools may be better suited for this type
  23.             of scripting but I want to minimize the number of tools that are used
  24.             for this project and I am already using kermit.
  25.  
  26. I need to make a hop through a firewall and then to the ftp server. The 
  27. problem I am having is how to actually connect to the ftp session.
  28. I have tried
  29.    C-Kermit> ftp firewall
  30. but this just starts an ftp session and does not allow me to use the input/output
  31. functions.
  32.  
  33. I have also tried
  34.    C-Kermit> set host firewall ftp
  35. This doesn't seem to establish a correct ftp session. I receive messages like:
  36. 500 '': command not understood.
  37. >From what little I know about ftp it looks like I am at a lower level then
  38. what the user interface really should be.
  39.  
  40. I want to be able to do something like...
  41.  
  42.  
  43. clear input
  44. set host firewall ftp          ; setup connection
  45. ; may have to login here
  46. input 5 firewall>
  47. output {ftp xxx.yyy.zzz.aaa\13}  ; send the ftp command
  48. input 5 login:                   ; login 
  49. output myname\13
  50. input 9 assword:
  51. output mypassword\13
  52. input 5 ftp>                     ; wait for ftp prompt
  53.  
  54. output bin\13                    ; set binary mode
  55. input 20 ftp>                  ; wait for ftp prompt
  56. output {get some_binary_file\13}  ; transfer the file
  57. input  200 ftp>
  58. output bye\13                      ; exit ftp
  59. output quit\13                     ; exit firewall
  60.  
  61.  
  62. Any comments/help would be greatly appreciated.
  63.  
  64. TIA
  65.  
  66.  
  67.